package com.ruoyi.business.mapper;

import java.util.List;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.ruoyi.business.domain.TCourseResource;
import org.apache.ibatis.annotations.Param;

/**
 * CourseResourceMapper接口
 * 
 * @author 最爱喝兽奶
 * @date 2024-03-20
 */
public interface TCourseResourceMapper extends BaseMapper<TCourseResource>
{
    /**
     * 查询CourseResource
     * 
     * @param id CourseResource主键
     * @return CourseResource
     */
    public TCourseResource selectTCourseResourceById(Long id);

    /**
     * 查询CourseResource列表
     * 
     * @param tCourseResource CourseResource
     * @return CourseResource集合
     */
    public List<TCourseResource> selectTCourseResourceList(TCourseResource tCourseResource);

    /**
     * 新增CourseResource
     * 
     * @param tCourseResource CourseResource
     * @return 结果
     */
    public int insertTCourseResource(TCourseResource tCourseResource);

    /**
     * 修改CourseResource
     * 
     * @param tCourseResource CourseResource
     * @return 结果
     */
    public int updateTCourseResource(TCourseResource tCourseResource);

    /**
     * 删除CourseResource
     * 
     * @param id CourseResource主键
     * @return 结果
     */
    public int deleteTCourseResourceById(Long id);

    /**
     * 批量删除CourseResource
     * 
     * @param ids 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteTCourseResourceByIds(Long[] ids);

    void addDownloadNum(@Param("id") Long id);
}
